Best Of Both Worlds: Mixing HTML5 And Native Code
mobile.smashingmagazine.com
OCTOBER 17, 2013
var nativeBridge = { invoke: function (commandName, args) { console.log(commandName + ": " + JSON.stringify(args, null, 2)); window.location = js-call: + commandName + : + encodeURIComponent(JSON.stringify(args)); } }; This code attempts to navigate the browser to a new URL, but not one with a normal [link] or file:// URL scheme.
Let's personalize your content